﻿
@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>
@*@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Price)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AlbumArtUrl)
        </td>
        <td>
            @Html.ActionLink("改数据", "Edit", new { id = item.AlbumId })
        </td>
    </tr>

}*@
<p>@Html.ActionLink("新建专辑数据","Create","SammpleHtmlHelper")</p>
<table class="table">
    <tr>
        <th>@Html.DisplayNameFor(mode => mode.Title)</th>
        <th>@Html.DisplayNameFor(mode => mode.Price)</th>
        <th>@Html.DisplayNameFor(mode => mode.AlbumArtUrl)</th>
    </tr>
</table>
@foreach (var item in Model)
{
    <tr>
        <td>@Html.DisplayFor(modelItem => item.Title)</td>
        <td>@Html.DisplayFor(modelItem => item.Price)</td>
        <td>@Html.DisplayFor(modelItem => item.AlbumArtUrl)</td>
        <td>@Html.ActionLink("新增数据“，”Edit", new { id = item.AlbumID })</td>
    </tr>
}